<template>
  <el-col :span="20" class="content">
    <template v-if="dataSource.length > 0">
      <right-list-item v-for="(item, index) in dataSource" :key="'right-list-item' + index" :itemData="item" />
    </template>
    <a-empty style="padding-top: 200px;" description="暂无数据" v-else />
  </el-col>
</template>

<script>
  import RightListItem from './RightListItem'
  export default {
    name: 'LeftPane',
    components: { RightListItem },
    props: {
      dataSource: {
        type: Array,
        default: () => []
      }
    },
    data() {
      return {
        RightListItem
      }
    }
  }
</script>

<style lang="scss" scoped>
  .content {
    box-sizing: border-box;
    height: 540px;
    overflow-y: scroll;
    border-top: 4px solid #3672fe;
  }
</style>
